<%@ page import="books4africa.Inventory" %>



<div class="fieldcontain ${hasErrors(bean: inventoryInstance, field: 'book', 'error')} required">
	<label for="book">
		<g:message code="inventory.book.label" default="Book" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="book" name="book.id" from="${books4africa.Books.list()}" optionKey="id" required="" value="${inventoryInstance?.book?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: inventoryInstance, field: 'donation', 'error')} required">
	<label for="donation">
		<g:message code="inventory.donation.label" default="Donation" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="donation" name="donation.id" from="${books4africa.Donation.list()}" optionKey="id" required="" value="${inventoryInstance?.donation?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: inventoryInstance, field: 'qty', 'error')} required">
	<label for="qty">
		<g:message code="inventory.qty.label" default="Qty" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="qty" required="" value="${fieldValue(bean: inventoryInstance, field: 'qty')}"/>
</div>

